package cn.yeziji.file.annotation;

import org.springframework.http.HttpHeaders;

import java.lang.annotation.*;

/**
 * 被 auth 注释的方法需要通过 {@link cn.yeziji.file.aspect.TokenAspect} 拦截
 *
 * @author gzkemays
 * @since 2022/5/16 14:55
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface Auth {
  String header() default HttpHeaders.AUTHORIZATION;
}
